/**
 * @project_name staff_vehicle
 * @package_name com.ssh.util
 * @desc TODO
 * @param
 * @author jack
 * @date 2013-5-1
 * @time 下午12:56:28
 */
package com.ssh.util;

/**
 * @author jack
 * @desc 权限管理类
 */
public class PermissionManage {
	public static final short ADMIN = (short) 1;
	public static final short CONCIERGE = (short) 2;
	public static final short COMMON_STAFF = (short) 3;

	public static boolean haveAdminPermission(int permission, String action) {
		if (permission == ADMIN)
			return true;
		return false;
	}
	public static boolean haveCommonPermission(int permission, String action) {
		if (permission == COMMON_STAFF)
			return true;
		return false;
	}

	public static boolean haveCiergePermission(int permission, String action) {
		if (permission == COMMON_STAFF || permission==CONCIERGE)
			return true;
		return false;
	}
}
